package com.example.gateway.config;

import io.netty.resolver.DefaultAddressResolverGroup;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import reactor.netty.http.client.HttpClient;


/**
 * 解决Failed to resolve 'DESKTOP-XXXXXXX.mshome.net' after 4 queries报错问题
 * @author hmy
 */
//@Configuration
//public class DnsConf {
//
//    @Bean
//    public HttpClient httpClient() {
//        return HttpClient.create().resolver(DefaultAddressResolverGroup.INSTANCE);
//    }
//}
